package org.loneranger.p6_initialization;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * bean的生命周期：初始化
 */
public class InitTest {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext =
                new AnnotationConfigApplicationContext(InitConfig.class);
        InitService initService = applicationContext.getBean("initService", InitService.class);
    }

}
